package com.zjs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zjs.dao.dos.Archives;
import com.zjs.dao.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2022-02-22
 */

@Repository
public interface ArticleMapper extends BaseMapper<Article> {

    List<Archives> listArchives();

    //自定义实现查询文章，包含它的内容
    IPage<Article> listArticle(IPage<Article> page,
                               Long categoryId,
                               Long tagId,
                               String year,
                               String month);

}
